import java.util.ArrayList;
import java.util.Collections;

public class 反转数组 {
    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<String>();
        arrayList.add("序");
        arrayList.add("顺");
        arrayList.add("符");
        arrayList.add("字");
        arrayList.add("组");
        arrayList.add("数");
        arrayList.add("倒");
        arrayList.add("颠");
        System.out.println("反转前排序: " + arrayList);
        Collections.reverse(arrayList);
        System.out.println("反转后排序: " + arrayList);
    }
}
